<?php

class Record extends Eloquent {
	
	//const CREATED_AT = 'datePosted';
	protected $table;
	
	public function sefFormat($text){
		return $text.'hei';
	}
	
	public function url(){
		return 'javascript:void(0)';
	}
	
	/*public function scopeActive($query){
		return $query->where('status_code');
	}*/
	
	public function getCurrentTime(){
		return time();
	}
	
	public function scopeStatus($query,$criteria) {
		return $query->where($this->table.'.status', '=', $criteria );
	}	
}